package Vue;

import java.awt.Color;
import java.awt.Graphics2D;

import reseau.Coordonnees2D;
import reseau.WayPoint;

public class Agent {

	private Terrain       _terrain;
	private Coordonnees2D _position;
	private WayPoint      _pointDepart;
	private WayPoint      _pointDArrive;
	public Agent(Terrain terrain, Coordonnees2D position)
	{
		this._terrain = terrain;
		this._position = position;
	}
	
	public void setWPDepart(WayPoint wp)
	{
		this._pointDepart = wp;
	}
	
	public void setWPDArrive(WayPoint wp)
	{
		this._pointDArrive = wp;
	}
	
	public void display(CAImageBuffer image)
	{
		if(this._position.getX() > 5 && this._position.getY() > 5)
		{
			Graphics2D g;
			g =image.createGraphics(); 
			g.setColor(new Color(37,170,30));
			g.drawOval((int)this._position.getX() -5, (int)this._position.getY() -5, 10, 10);
		}
	}
	
	public void step()
	{
		
	}
	
	
}
